# Customize to your system's specifications

CC=avr-gcc
AR=ar
CPUTYPE=atmega168
ARDUINO_INCLUDES=/home/tron/src/workspace/ArduinoCoreLibrary
AVR_INCLUDES=/usr/avr/include
AVR_INCLUDES2=/usr/lib/gcc/avr/4.3.3/include
AVR_INCLUDES3=/usr/lib/gcc/avr/4.3.3/include-fixed

# Below this point, nothing should be modified
SRC=HD44780.c
OUTPUT=HD44780.o
LIB=libArduinoHD44780.a
OPTIONS=-std=c99 -Os -mmcu=${CPUTYPE}

all: compile

compile:
	${CC} -c ${SRC} -o ${OUTPUT} -I. -I${ARDUINO_INCLUDES} -I${AVR_INCLUDES} -I${AVR_INCLUDE2} -I${AVR_INCLUDE3} ${OPTIONS}
	${AR} rcs ${LIB} ${OUTPUT}

clean:
	-rm -f ${OUTPUT} ${LIB}
